﻿using MediatR;
using S.Authorization.Common;
using S.Authorization.Common.Dto;
using S.Authorization.Domain.Model.Authority;

namespace S.Authorization.Read.API.Application.Command.RoleCommand
{
    public class RoleReadAllCommand
    {
        /// <summary>
        /// 角色表反填
        /// </summary>
        public class RoleGetByIdCommand:IRequest<RoleModelByRIdDto>
        {
            public int RoleId { get; set; }

        }


        /// <summary>
        /// 角色表分页显示
        /// </summary>
        public class RoleGetPageAllCommand : IRequest<Pager<RoleModel>>
        {
            public int PageIndex { get; set; }

            public int PageSize { get; set; }
            public string? RoleName { get; set; }

        }
        /// <summary>
        /// 角色表显示
        /// </summary>
        public class RoleGetAllCommand : IRequest<List<RoleModel>>
        {

        }
    }
    
}
